using System;
using System.BusinessObjects.Data;
using System.Data;

namespace Blazing.BusinessObjects.Cms
{
    public class StatisticSession : DataObject<StatisticSession>
    {
        #region Properties
        public virtual int ID
        {
            get { return GetValue<int>("ID"); }
            set
            {
                BeginEdit();
                SetValue("ID", value);
            }
        }

        public virtual string SessionKey
        {
            get { return GetValue<string>("SessionKey"); }
            set
            {
                BeginEdit();
                SetValue("SessionKey", value);
            }
        }

        public virtual string IpAddress
        {
            get { return GetValue<string>("IpAddress"); }
            set
            {
                BeginEdit();
                SetValue("IpAddress", value);
            }
        }

        public virtual DateTime RowStamp
        {
            get { return GetValue<DateTime>("RowStamp"); }
            set
            {
                SetValue("RowStamp", value);
            }
        }

        StatisticVisitor _statisticVisitor;
        public virtual StatisticVisitor Visitor
        {
            get
            {
                return _statisticVisitor;
            }
            set
            {
                BeginEdit();
                _statisticVisitor = value;
            }
        }

        StatisticUseragent _statisticUseragent;
        public virtual StatisticUseragent Useragent
        {
            get
            {
                return _statisticUseragent;
            }
            set
            {
                BeginEdit();
                _statisticUseragent = value;
            }
        }

        StatisticOperatingSystem _statisticOperatingSystem;
        public virtual StatisticOperatingSystem OperatingSystem
        {
            get
            {
                return _statisticOperatingSystem;
            }
            set
            {
                BeginEdit();
                _statisticOperatingSystem = value;
            }
        }
        #endregion  
    }
}
